#ifndef SIMPLE_SUPPORT_MATH_ABS_HPP
#define SIMPLE_SUPPORT_MATH_ABS_HPP

namespace simple::support
{

	template <typename Number>
	[[nodiscard]] constexpr
	auto abs(Number n)
	noexcept(noexcept(n < 0, -n, decltype(-n){n}))
	-> decltype(n < 0, -n)
	{
		if(n < 0) return -n;
		else return n;
	}

} // namespace simple::support

#endif /* end of include guard */
